Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix clientSecret usage and adds test case #107

Merged
merged 5 commits into from Jun 22, 2015
Merged

Fix clientSecret usage and adds test case #107

merged 5 commits into from Jun 22, 2015

Conversation

ghost
Copy link

@ghost ghost commented Jun 19, 2015

This duplicate the fix from #101 and includes a proposed test case that would fail without the fix.

The previous suite of tests would complain if the user leaves off the clientSecret or gives it a value of undefined. But this particular bug happened at the point the clientSecret was assign as part of the query and then converted into a queryString. Since the wrong variable name was passed the query property client_secret was given a value of undefined. Then the queryString conversion method changed the undefined value into an empty string which is valid for a clientSecret.

@geek geek added the bug Bug or defect label Jun 22, 2015
@geek geek added this to the 4.0.1 milestone Jun 22, 2015
@geek geek self-assigned this Jun 22, 2015
geek added a commit that referenced this pull request Jun 22, 2015
 Fix clientSecret usage and adds test case
@geek geek merged commit 4bf59b7 into hapijs:master Jun 22, 2015
@lock
Copy link

lock bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Bug or defect
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant